package com.imooc.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RestController;

import com.imooc.utils.RedisOperator;

@RestController
public class BasicController {
	
	@Autowired
	public RedisOperator redis;
	
	public static final String USER_REDIS_SESSION = "user-redis-session";
	
	/**
	 * 文件保存的命名空间
	 * /home/imooc_videos_dev
	 * C:/imooc_videos_dev
	 */
	@Value("${FILE_SPACE}")
	public static final String FILE_SPACE = "/home/imooc_videos_dev";

	/**
	 * /usr/local/bin/ffmpeg
	 * D:\\AThirdAPP\\ffmpeg\\bin\\ffmpeg.exe
	 */
	@Value("${FFMPEG_EXE}")
	// ffmpeg所在目录D:\AThirdAPP\ffmpeg\bin
//	public static final String FFMPEG_EXE = "C:\\ffmpeg\\bin\\ffmpeg.exe";
	public static final String FFMPEG_EXE = "/usr/local/bin/ffmpeg";

	// 每页分页的记录数
	public static final Integer PAGE_SIZE = 5;
	
}
